SET(MODULE_NAME scdl-compiler)

FILE(GLOB HEADERS ${PROJECT_SOURCE_DIR}/include/scdl/compiler/*.hpp)
FILE(GLOB FILES ${PROJECT_SOURCE_DIR}/src/scdl/compiler/*.cpp)

SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR})

ADD_EXECUTABLE(${MODULE_NAME} ${FILES} ${HEADERS})
SET_TARGET_PROPERTIES(${MODULE_NAME} PROPERTIES COMPILE_DEFINITIONS "COMPILER_DEFINITION")
SET_TARGET_PROPERTIES(${MODULE_NAME} PROPERTIES LINK_INTERFACE_LIBRARIES "")
SET_TARGET_PROPERTIES(${MODULE_NAME} PROPERTIES PREFIX "")
SET_TARGET_PROPERTIES(${MODULE_NAME} PROPERTIES OUTPUT_NAME ${MODULE_NAME})
TARGET_LINK_LIBRARIES(${MODULE_NAME} scdl-core)
ADD_DEPENDENCIES(${MODULE_NAME} scdl-core)
INSTALL(TARGETS scdl-compiler DESTINATION .)
